// 参数接口
export interface AddParams {
    /* */
    cron?: string;

    /* */
    name?: string;

    /* */
    group?: string;

    /* */
    desc?: string;
}

// 响应接口
export interface AddRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: string;
}

export interface DeleteParams {
    /* */
    cron?: string;

    /* */
    name?: string;

    /* */
    group?: string;

    /* */
    desc?: string;
}

// 响应接口
export interface DeleteRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: string;
}

export interface PauseParams {
    /* */
    cron?: string;

    /* */
    name?: string;

    /* */
    group?: string;

    /* */
    desc?: string;
}

// 响应接口
export interface PauseRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: string;
}

// 响应接口
export interface QueryRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: {
        /* */
        group: string;

        /* */
        name: string;

        /* */
        description: string;

        /* */
        state: string;

        /* */
        cronExpression: string;

        /* */
        nextFireTime: Record<string, unknown>;

        /* */
        preFireTime: Record<string, unknown>;
    }[];
}

// 参数接口
export interface RescheduleParams {
    /* */
    cron?: string;

    /* */
    name?: string;

    /* */
    group?: string;

    /* */
    desc?: string;
}

// 响应接口
export interface RescheduleRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: string;
}

// 参数接口
export interface ResumeParams {
    /* */
    cron?: string;

    /* */
    name?: string;

    /* */
    group?: string;

    /* */
    desc?: string;
}

// 响应接口
export interface ResumeRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: string;
}

// 参数接口
export interface RunParams {
    /* */
    cron?: string;

    /* */
    name?: string;

    /* */
    group?: string;

    /* */
    desc?: string;
}

// 响应接口
export interface RunRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: string;
}